package com.swordxu.yim.android.ui.fragment;

import android.view.View;
import android.widget.ProgressBar;

import com.swordxu.yim.R;
import com.swordxu.yim.android.ui.base.YimBaseFragment;


/**
 * Created by 徐晓明 on 2015/1/8.
 */
public abstract class MainFragment extends YimBaseFragment {
    private ProgressBar progressbar;

    public void init(View curView) {
        progressbar = (ProgressBar) curView.findViewById(R.id.progress_bar);
    }

    public void showProgressBar() {
        progressbar.setVisibility(View.VISIBLE);
    }

    public void hideProgressBar() {
        progressbar.setVisibility(View.GONE);
    }

}
